package com.qf.smsplatform.gateway.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * projectName: sms-platform
 *
 * @author: 黄睿武
 *time: 2021/8/23 8:35
 * description:
 */
@FeignClient(value = "sms-platform-webmaster")
public interface AcountClient {

    /**
     * 信息发送成功,扣数据库
     * @return
     */
    @ResponseBody
    @PostMapping("/sys/acount/fee")
    public void updateFee(@RequestParam int fees,@RequestParam int cid) throws Exception;

    /**
     * 同步t_client_business表中的数据全部查询出来并且存放到redis中
     * @return
     */
    @ResponseBody
    @RequestMapping("/sys/clientbusiness/sync")
    void sync();

}
